<?php


/**
* CakePHP Schema Plugin
* http://cake-schema-plugin.googlecode.com
*
* @package schema
* @subpackage schema
* @author Ivan Chistyakov <zetruger@gmail.com>
* @version $Id: schema_app_model.php 133 2010-10-26 18:28:01Z zetruger@gmail.com $
* @link $HeadURL: http://cake-schema-plugin.googlecode.com/svn/trunk/schema_app_model.php $
* @license MIT License (http://opensource.org/licenses/mit-license.php)
*/


class SchemaAppModel extends AppModel {

var $useDbConfig = 'schema';

var $recursive = -1;

var $primaryKey = 'id';
var $displayField = 'name';

var $actsAs = array(
	'Containable',
	'Schema.XForm',
	'Routines.Routinable'
);

function __construct() {
	if (!in_array('schema', ConnectionManager::enumConnectionObjects())) {
		$ds = &ConnectionManager::create('schema', array('datasource' => 'Schema.schema'));
	}
	parent::__construct();
}

}


?>